package com.study.dataStructure.set;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @PACKAGE_NAME: com.study.dataStructure.Set
 * @CLASS_NAME: TestLinkedHashSet
 * @USER: kagura
 * @Description TODO
 * @Date 2020/12/12 1:44 下午
 * @MONTH_NAME_FULL: 十二月
 * @DAY: 12
 * @DAY_NAME_FULL: 星期六
 * @PROJECT_NAME: Study
 **/
public class TestLinkedHashSet {
    public static void main(String[] args) {
        // create a hash set
        Set<String> set = new LinkedHashSet<>();

        // add strings to the set
        set.add("kagura");
        set.add("vermouth");
        set.add("ultraman");

        System.out.println(set);

        // display the elements in the hash set
        set.forEach(e -> System.out.print(e.toUpperCase() + " "));
    }
}
